home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5086 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.2 KB  |  44 lines

  1. Path: news1.h1.usa.pipeline.com!usenet
  2. From: grantp@usa.pipeline.com(Pete)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Help
  5. Date: 2 Feb 1996 12:26:05 GMT
  6. Organization: Kalevi, Inc.
  7. Message-ID: <4esvst$d8a@news1.usa.pipeline.com>
  8. NNTP-Posting-Host: pipe10.h1.usa.pipeline.com
  9. X-PipeUser: grantp
  10. X-PipeHub: usa.pipeline.com
  11. X-PipeGCOS: (Pete)
  12. X-Newsreader: Pipeline USA v3.3.0
  13.  
  14. On Feb 01, 1996 23:27:26 in article <Help>, 'Gary Hagen <GaryJ@gnn.com>'
  15. wrote: 
  16.  
  17.  
  18. >Hi, 
  19. >I am having trouble with a 2 file + header program.I get  
  20. >link error 2025.I am using a structure called golf with a  
  21. >variable g.When I try to build the project I get  
  22. >2025....says struct golf near*  near g defined more than  
  23. >once in file golfer2.I can't seem to figure this out and  
  24. >would appreciate any help I can get.I am using MSVC++ 1.52 
  25. How'd you define the structure?  If it's something like 
  26.  
  27. struct Foo { int x; } foo; 
  28.  
  29. then you are instantiating the structure each time you 
  30. include the header file.  Declare it instead as 
  31.  
  32. struct Foo { int x; }; 
  33.  
  34. but then you must instantiate it in one of your source 
  35. files. 
  36.  
  37. If the above doesn't apply, post some code. 
  38.  
  39. -- 
  40. Pete Grant 
  41. Kalevi, Inc. 
  42. Object Oriented Software Development
  43.